var utils = {

    // 数字转换为十六进制字符串，可以指定字符串输出长度
    toFormattedHex(num,length){
        var len = num.toString(16).length
        var outStr = num.toString(16).toUpperCase()
        while(len < length) {
            outStr = '0' + outStr
            len++
        }
        return outStr
    }

}

export default utils
